<script>
	$(function(){
		$('#orderDetail_grid').datagrid({   
			title:'商品详情',
		    url:'/orderItem/grid',    
		    queryParams: {
		    	orderItemId: '${po.id!}'
			},
		    columns:[[    
		        {field:'goods_name',title:'商品名称',width:150}, 
		        {field:'goods_price',title:'价格(元)',width:100,align:'right'}, 
		        {field:'goods_count',title:'数量',width:100,align:'right'},
		        {field:'goods_unit',title:'单位',width:100,align:'right'}
		    ]],
		    toolbar : [],
		    pagination:false,
		    onDblClickRow:null    
		});
	})
</script>
<div  id="tt" class="easyui-tabs" style="width: 786px; height: 450px;">
	<div title="订单详情" style="padding:5px;">
	<table class="tableForm tableCss">
		<tr>
			<th>订单编号</th>
			<td colspan="3">${(po.order_no)!}</td>
		</tr>
		<tr>
			<th>实付金额</th>
			<td><font color="red">${(po.pay_amount)!'-'} </font>元</td>
			<th>订单状态</th>
			<td>
				<#if po.status??>
					<#if po.status == 'MERCHANT_UNCONFIRMED'>
						待商户确认
					<#elseif po.status == 'USER_UNPAYMENT'>
						待用户支付
					<#elseif po.status == 'MERCHANT_UNDELIVERY'>
						待商户发货
					<#elseif po.status == 'USER_UNRECEIPT'>
						待用户收货
					<#elseif po.status == 'COMPLETED'>
						完成
					</#if>
				</#if>
			</td>
		</tr>
		<tr>
			<th>订单金额</th>
			<td>${(po.amount)!'-'} 元</td>
			<th>代购费</th>
			<td><font color="red">${(po.agent_fee)!'-'} </font>元</td>
		</tr>
		<tr>
			<th>创建时间</th>
			<td>${(po.created_time)!'-'}</td>
			<th>支付时间</th>
			<td>${(po.pay_time)!'-'}</td>
		</tr>
		<tr>
			<th>订单备注</th>
			<td colspan="3">
			<#if po.remarks??>
				<#if po.remarks == ''>-
				<#else>
					${(po.remarks)!'-'}
				</#if>
			<#else>
				-
			</#if>
			</td>
		</tr>
		<tr>
			<th>收货人</th>
			<td>${(po.receipt_name)!}</td>
			<th>收货人手机号</th>
			<td>${(po.receipt_phone)!}</td>
		</tr>
		<tr>
			<th>收货人地址</th>
			<td colspan="3">
			<#if po.address??>
				<#if po.address == ''>-
				<#else>
					${(po.address)!'-'}
				</#if>
			<#else>
				-
			</#if>
			</td>
		</tr>
		<tr>
			<th>社区服务点</th>
			<td>${(po.community_name)!}</td>
			<th>送货时间</th>
			<td>${(po.delivery_time)!}</td>
		</tr>
		<tr>
			<th>服务点联系人</th>
			<td>${(po.community_contacts_name)!}</td>
			<th>服务点联系人手机号</th>
			<td>${(po.community_contacts_phone)!}</td>
		</tr>
		<tr>
			<th>社区服务点地址</th>
			<td colspan="3">${(po.community_address)!}</td>
		</tr>
	</table>
	<table id="orderDetail_grid"></table> 
	</div>
</div>